Text File | 1996-08-07 | 711 b | 12 lines | [TEXT/ttxt]
SATCluts
This demo shows how to use different color tables with SAT, changing even after loading, and making sprite faces work with the changes.
Usage: Type any key from 1 to 9 to choose CLUT. All CLUTs except 5 (the system palette) should leave the sprite intact, with the same colors. A small number of colors are used for the sprite face, and the others are changing in all the CLUTs.
NOTE: 256 colors assumed! The program makes NO checks for this. In a real program, you should do those checks, which probably means that you don't call any CLUT-setting procedure if you are in, say, B/W or thousands of colors.
Think Pascal and Metrowerks Pascal (PPC only) projects included.